QTINC=/usr/include/qt4
CPPFLAGS=-I$(QTINC)

all: libmemap.a
	mv $^ ../../lib

libmemap.a: Analyst.o EMapAccess.o mif.o MIFparser.o PrimitiveStream.o
	ar r $@ $^

Analyst.o: Analyst.cpp Analyst.hpp
EMapAccess.o: EMapAccess.cpp EMapAccess.hpp MIFparser.hpp mif.h PrimitiveStream.hpp Analyst.hpp
mif.o: mif.cpp mif.h
MIFparser.o: MIFparser.cpp MIFparser.hpp mif.h PrimitiveStream.hpp \
  Analyst.hpp
PrimitiveStream.o: PrimitiveStream.cpp PrimitiveStream.hpp mif.h

.PHONY: clean

clean:
	rm -f *.o *~
